home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / gcc / gcc270-b.lha / gnu / etc / startup.mk < prev    next >
Text File  |  1994-07-25  |  3KB  |  135 lines

  1. # Generic AMIGA DMAKE startup file.  Customize to suit your needs.
  2. # See the documentation for a description of internally defined macros.
  3. #
  4. # Disable warnings for macros redefined here that were given
  5. # on the command line.
  6. __.SILENT := $(.SILENT)
  7. .SILENT   := yes
  8.  
  9. # Configuration parameters for DMAKE startup.mk file
  10. # Set these to NON-NULL if you wish to turn the parameter on.
  11. _HAVE_RCS    :=         # yes => RCS  is installed.
  12. _HAVE_SCCS    :=         # yes => SCCS is installed.
  13.  
  14. # Applicable suffix definitions
  15. A := .a        # Libraries
  16. E :=        # Executables
  17. F := .f        # Fortran
  18. O := .o        # Objects
  19. P := .p        # Pascal
  20. S := .s        # Assembler sources
  21. V := ,v        # RCS suffix
  22.  
  23. # Recipe execution configurations
  24. SHELL        := c:sksh
  25. SHELLFLAGS    := -c
  26. GROUPSHELL    := $(SHELL)
  27. GROUPFLAGS    := 
  28. SHELLMETAS    := |();&<>?*][$$:\\#`'"
  29. GROUPSUFFIX    :=
  30. DIVFILE         = $(TMPFILE)
  31.  
  32. # Standard C-language command names and flags
  33.    CPP       := gcc -E        # C-preprocessor
  34.    CC      := gcc        # C-compiler and flags
  35.    CFLAGS  +=
  36.  
  37.    AS      := $(CC)        # Assembler and flags
  38.    ASFLAGS += 
  39.  
  40.    LD       = $(CC)        # Loader and flags
  41.    LDFLAGS +=
  42.    LDLIBS   =
  43.  
  44. # Definition of $(MAKE) macro for recursive makes.
  45.    MAKE = $(MAKECMD) $(MFLAGS)
  46.  
  47. # Definition of Print command for this system.
  48.    PRINT = lpr
  49.  
  50. # Language and Parser generation Tools and their flags
  51.    YACC      := bison        # standard yacc
  52.    YFLAGS += -y
  53.    YTAB      := y.tab        # yacc output files name stem.
  54.  
  55.    LEX      := flex        # standard lex
  56.    LFLAGS +=
  57.    LEXYY  := lex.yy        # lex output file
  58.  
  59. # Other Compilers, Tools and their flags
  60.    PC    := pc            # pascal compiler
  61.    RC    := f77            # ratfor compiler
  62.    FC    := f77            # fortran compiler
  63.  
  64.    CO       := co        # check out for RCS
  65.    COFLAGS += -q
  66.  
  67.    AR     := ar            # archiver
  68.    ARFLAGS+= ruv
  69.  
  70.    RM       := c:delete        # remove a file command
  71.    RMFLAGS +=
  72.  
  73. # Implicit generation rules for making inferences.
  74. # We don't provide .yr or .ye rules here.  They're obsolete.
  75. # Rules for making *$O
  76.    %$O : %.c ; $(CC) $(CFLAGS) -c $<
  77.    %$O : %$P ; $(PC) $(PFLAGS) -c $<
  78.    %$O : %$S ; $(AS) $(ASFLAGS) $<
  79.    %$O : %.cl ; class -c $<
  80.    %$O : %.e %.r %.F %$F
  81.     $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
  82.  
  83. # Executables
  84.    %$E : %$O ; $(LD) $(LDFLAGS) -o $@ $< $(LDLIBES)
  85.  
  86. # lex and yacc rules
  87.    %.c : %.y ; $(YACC)  $(YFLAGS) $<; move $(YTAB).c $@
  88.    %.c : %.l ; $(LEX)   $(LFLAGS) $<; move $(LEXYY).c $@
  89.  
  90. # This rule tells how to make *.out from it's immediate list of prerequisites
  91. # UNIX only.
  92.    %.out :; $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  93.  
  94. # RCS support
  95. .IF $(_HAVE_RCS)
  96.    % : %$V $$(@:d)RCS/$$(@:f)$V;- $(CO) $(COFLAGS) $@
  97.    .NOINFER : %$V $$(@:d)RCS/$$(@:f)$V
  98. .END
  99.  
  100. # SCCS support
  101. .IF $(_HAVE_SCCS)
  102.    % : s.% ; get $@
  103.    .NOINFER : s.%
  104. .END
  105.  
  106. # Recipe to make archive files.
  107. %$A :
  108. [
  109.    $(AR) $(ARFLAGS) $@ $?
  110.    $(RM) $(RMFLAGS) $?
  111. ]
  112.  
  113. # DMAKE uses this recipe to remove intermediate targets
  114. .REMOVE :; $(RM) -f $<
  115.  
  116. # AUGMAKE extensions for SYSV compatibility
  117. @B = $(@:b)
  118. @D = $(@:d)
  119. @F = $(@:f)
  120. *B = $(*:b)
  121. *D = $(*:d)
  122. *F = $(*:f)
  123. <B = $(<:b)
  124. <D = $(<:d)
  125. <F = $(<:f)
  126. ?B = $(?:b)
  127. ?F = $(?:f)
  128. ?D = $(?:d)
  129.  
  130. # Turn warnings back to previous setting.
  131. .SILENT := $(__.SILENT)
  132.  
  133. # Local startup file if any
  134. .INCLUDE .IGNORE: "_startup.mk"
  135.